package com.woniuxy.core.exception.orderException;

public enum OrderExceptionCode {

    CAR_CANNOT_OUT(4013,"车辆出场时间必须大于入场时间"),
    CAR_CANNOT_INCOME1(4012,"车辆不在订单时间内"),
    CAR_CANNOT_INCOME(4011,"订单定金没有支付无法进入"),
    ORDER_HAD_COMMENT(4010,"订单已评论"),
    ORDER_NOT_NEED_PAY(4009,"没有尾款需要支付"),
    ORDER_HAS_PAY_Earnest(4005,"订单不是未支付定金状态"),
    Order_sort_erro(4006,"错误的排序规则"),
    ORDER_TIME_SORT_ERRO(4007,"时间选择有误"),
    ORDER_STATE_NOT_HAVE(4008,"不存在的订单状态"),
    ORDER_INEXISTENCE(4001,"订单不存在"),
    ORDER_DOUBLEPAYMENT(4001,"订单重复支付"),
    ORDER_TIME_ERRO(4002,"订单开始时间不能大于等于结束时间"),
    NO_WAITING_ORDER(4003,"暂无待进行订单"),
    NO_ORDER_CAN_DEL(4004,"暂无可删除订单");

    private Integer code;

    private String message;

    OrderExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
